/**
 * 
 */
package com.zhiteng.service;

import java.util.List;

import com.zhiteng.entity.Procdef;
import com.zhiteng.entity.Procins;

/**  
* <p>Title: LeaveProcessService.java</p>  
* <p>Description: </p>  
* @author dragon  
* @date 2018年12月3日  
* @version 1.0  
*/
public interface ProcessService {
	
	void delProcdef(String schoolId, Integer type);
	
	int saveProcdefBatch(List<Procdef> pdList);
	
	List<Procdef> queryProcdef(String schoolId, Integer type);

	void saveProcinsBatch(List<Procins> procinsList);
	
	List<Procins> queryProcinsByBillId(long billId);	
	
	List<Procins> queryProcinsByRecord(Procins record);
	
	void updateProcinsBatch(List<Procins> procinsList);

	void updateProcinsByRecord(Procins procins);
	
	List<Procins> queryComplatedProcinsByAssigneeId(String teacherId, String schoolId);

	void deleteProcinsBybillIdAndType(Long billId, int type);
	
	////////////////////////////////////////////

	int saveProcins(Procins procins);

	List<Procdef> queryProcdefBySchoolId(String school_id);

	int updateProcinsStatus(String schoolId, Long billId, int status, String id, String remark);

	int updateComplated(Long billId);

	List<Procins> queryProcinsBySchoolIdAndAssigneeIdAndBillId(String schoolId, String assigneeId, Long billId);

	void setNextStart(int i, String schoolId, Long billId);

	List<Procins> queryProcinsByAssigneeId(String assigneeId);

	List<Procins> queryProcinsByAssigneeIdAndStatus(String assignee_id, int i);

	int deleteProcins(Long billId);

	List<Procins> queryAdjustBillByAssigneeId2(String assigneeId);

	List<Procins> queryProcinsByBillId2(long billId);

	Procins queryProcinsBySquenceAndSchoolIdAndAndBillId(int i, String schoolId, Long billId);

	List<Procins> queryProcinsByBillId3(Long id);

	int updateProcinsTeacher(Procins procins2);

}
